package com.cskaoyan.mapper;

import com.cskaoyan.bean.po.MarketGoods;
import com.cskaoyan.bean.po.MarketOrderGoods;
import com.cskaoyan.bean.po.MarketOrderGoodsExample;


import com.cskaoyan.bean.vo.statistics.GoodsStatInnerRows;

import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface MarketOrderGoodsMapper {
    long countByExample(MarketOrderGoodsExample example);

    int deleteByExample(MarketOrderGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketOrderGoods record);

    int insertSelective(MarketOrderGoods record);

    List<MarketOrderGoods> selectByExample(MarketOrderGoodsExample example);

    MarketOrderGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketOrderGoods record, @Param("example") MarketOrderGoodsExample example);

    int updateByExample(@Param("record") MarketOrderGoods record, @Param("example") MarketOrderGoodsExample example);

    int updateByPrimaryKeySelective(MarketOrderGoods record);

    int updateByPrimaryKey(MarketOrderGoods record);

    List<MarketOrderGoods> selectByOrderId(Integer id);

    ArrayList<GoodsStatInnerRows> goodsStatisticsGroupBy();

    MarketGoods selectGoodsByPrimaryKey(Integer goodsId);

    MarketOrderGoods selectByOrderIdAndGoodsId(@Param("orderId") Integer orderId, @Param("goodsId") Integer goodsId);

    MarketOrderGoods selectById(Integer orderGoodsId);
}